package com.tuanzi.loan.business.repository.xhh.settlementsystem.custom;

import com.tuanzi.loan.vo.request.xhh.settlementsystem.XhhSettlementIncomeRequest;
import com.tuanzi.loan.vo.response.xhh.settlementsystem.XhhSettlementIncomeResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author caiwanlin
 * @create 2018-08-16 15:35
 */
public interface XhhSettlementIncomeRepositoryCustom {
	Page<XhhSettlementIncomeResponse> list(XhhSettlementIncomeRequest searchRequest, Pageable pageable);

	void updateCompanyNameByCompanyId(Long companyId, String companyName);

	void updateProductNameByProductId(Long productId, String productName);

	void updateCompanyIdAndCompanyNameByCompanyId(Long companyId, String companyName, Long newCompanyId);

	Double sumRangeTotalAmount(XhhSettlementIncomeRequest request);

	Double sumRangeTotalUvValue(XhhSettlementIncomeRequest request);
}
